<template>
  <view class="goods_item">
    <!-- 搜索页商品列表 -->
    <view class="img_view">
      <image class="good_img" src="@/assets/test/a1.png" mode="aspectFill" />
    </view>
    <view class="good_info">
      <text class="h2">商品名称</text>
      <text class="det">商品分类</text>
      <view class="teshu">
        <view class="pick">特价</view>
        <view class="pick">24小时发货</view>
      </view>
      <view class="price">￥39.9</view>
    </view>
  </view>
</template>

<script setup>
import {} from "vue";
</script>

<style lang="scss" scoped>
.goods_item {
  display: flex;
  align-items: center;
  height: 240rpx;
  margin: 12rpx auto;
  margin-bottom: 24rpx;
  .img_view {
    height: 100%;
    width: 220rpx;
    margin-right: 40rpx;
    padding-bottom: 20rpx;
    display: flex;
    .good_img {
      width: 100%;
      height: 100%;
    }
  }

  .good_info {
    flex: 1 0 auto;
    border-bottom: 1px solid #ebebeb;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 10rpx;
    .h2 {
      font-weight: 500;
      font-size: 28rpx;
      color: #333333;
      line-height: 30rpx;
      margin-bottom: 7px;
      display: inline-block;
    }
    .det {
      font-weight: 400;
      font-size: 24rpx;
      color: #999999;
      line-height: 26rpx;
    }

    .teshu {
      margin-top: auto;
      margin-bottom: 0;
      display: flex;
      padding-bottom: 5rpx;
      .pick {
        height: fit-content;
        width: fit-content;
        display: inline-block;
        border-radius: 2px;
        padding: 2px;
        font-weight: 400;
        font-size: 18rpx;
        color: #333333;
        line-height: 21rpx;
        border: 1rpx solid #333333;
        margin-right: 10rpx;
      }
    }
    .price {
      font-weight: 500;
      font-size: 30rpx;
      color: #333333;
      font-family: pfm;
      margin-bottom: 30rpx;
    }
  }
}
</style>
